package com.bdqn.zhang.service;

import com.bdqn.zhang.dao.EntryDao;
import com.bdqn.zhang.entity.Category;
import com.bdqn.zhang.entity.Entry;

import java.util.List;

public class EntryServiceImpl implements EntryService {


    private EntryDao entryDao;

    public void setEntryDao(EntryDao entryDao) {
        this.entryDao = entryDao;
    }


    @Override
    public void addEntry(Entry entry) {

    }

    @Override
    public void delEntry(Integer id) {

    }

    @Override
    public void updateEntry(Entry entry) {

    }

    @Override
    public Entry findEntry(Entry entry) {
        return null;
    }

    @Override
    public List<Entry> findAllEntries(Long cId, Integer page, Integer limit) {

        return entryDao.findAllEntries(cId,page,limit);
    }

    @Override
    public Long getEntryCount(Long cId) {
        return entryDao.getEntryCount(cId);
    }

    @Override
    public List<Category> getCategory() {
        return entryDao.getCategory();
    }
}
